package com.jinmdz.fmis.api.admin.model.role;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.core.base.BaseBean;
import com.jinmdz.fmis.dao.model.dictionary.DataDictionaryItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * 角色加载信息
 *
 * @author LiCongLu
 * @date 2020-03-18 13:02
 */
@ApiModel(value = "角色加载信息", description = "角色加载信息")
public class RoleLoadData extends BaseBean {
    /**
     * 角色信息
     */
    @AnValidate(name = "角色信息")
    @ApiModelProperty(value = "角色信息", name = "role", position = 1)
    private RoleSaveData role;

    /**
     * 字典数据
     */
    @AnValidate(name = "字典数据")
    @ApiModelProperty(value = "字典数据", name = "dicts", position = 2)
    private HashMap<String, ArrayList<DataDictionaryItem>> dicts;

    public RoleSaveData getRole() {
        return role;
    }

    public RoleLoadData setRole(RoleSaveData role) {
        this.role = role;
        return this;
    }

    public HashMap<String, ArrayList<DataDictionaryItem>> getDicts() {
        return dicts;
    }

    public RoleLoadData setDicts(HashMap<String, ArrayList<DataDictionaryItem>> dicts) {
        this.dicts = dicts;
        return this;
    }
}
